<tr>
  <td class="message_header" colspan="2"><%= post.created_at %>
    <div class="message_buttons">
    	<% if logged? %>
	    	<%= link_to image_tag('black_icons/quote.png', :class => "button"), new_groups_post_id_path(@groups_thread.id)+'?quote='+post.id.to_s+'&thread='+is_thread  %> 
	      <% if moderator_or_this_member? post.member_id %>
	      <%= link_to image_tag('black_icons/doc_edit.png', :class => "button"), edit_path %> 
	      <%= link_to image_tag('black_icons/round_delete.png', :class => "button"), object_to_delete , :confirm => 'Are you sure?', :method => :delete %> 
    		<% end %>
    	<% end %>
    </div>
  </td>
</tr>
<tr>
  <td class="message_poster">
    <%= link_to post.member.username, post.member %> 
    <%= post.member.membership.name %>
    
    <% if post.member.photo? %>
      <%= image_tag post.member.photo.url, :class => "avatar message" %>
    <% else %>
      <%= image_tag('avatars/default.png', :class => "message")%>
    <% end %>
    
  </td>
  <td class="message">
  	<%= raw parse_bbcode post.content %>
  </td>
</tr>
